<?php 
    include("includes/function.php");
    
    session_start();
    if (isset($_GET['img_id']))
    {
      $img_id = $_GET['img_id'];
      $uid = $_SESSION['uid'];
      include("includes/conf.inc.php");
      $sid = mysql_connect($db_host, $db_usr, $db_pass) or die(mysql_error());
      mysql_select_db("$db_name");
      if(ownerCheck($img_id, $uid))
      {
      echo "Y";
      }
      else
      {
      echo "N";
      }
    }
    else
    {
      header("Location:index.php");
    }
?>